﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Diagnostics;

namespace WorkRecorder
{
    /// <summary>
    /// Interaction logic for AboutPopup.xaml
    /// </summary>
    public partial class About : Window
    {

        private string version;

        public string Version
        {
            get { return version; }
            set { version = value; }
        }

  
        public About()
        {
 
            //"Pack://application:,,,/myProject;Component/ThemeResources/BlueTheme/BureauBlueTheme.xaml" 

            //Uri rescoursePath = new Uri("Pack://application:,,,/WorkRecorder;Component/ConfigurationFiles/WPFThemes/ShinyRed.xaml", UriKind.Absolute);
            //ResourceDictionary rd = new ResourceDictionary();
            //rd.Source = rescoursePath;
            //this.Resources = rd;

            InitializeComponent();
             
            this.versionLabel.DataContext = this;
            Version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
        }



        private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
        {

            Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));

            e.Handled = true;

        }

    }
}
